package com.vk.vkapiclientsdk;

import com.vk.vkapiclientsdk.client.VkApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName : VkApiClientConfig
 * @Description : VkApi 客户端配置
 * @Author : LYQ
 * @Date: 2024-01-13 16:00
 */
@Configuration
@ConfigurationProperties("vk.client")
@Data
@ComponentScan
public class VkApiClientConfig {

    private String accessKey;

    private String secretKey;

    @Bean
    public VkApiClient vkApiClient() {
        return new VkApiClient(accessKey, secretKey);
    }
}
